package com.hongdee.crm.carConfig.dao;

import com.hongdee.base.basedao.IBaseDao;
import com.hongdee.crm.carConfig.entity.TCrmCarConf;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by My on 2017/5/11.
 */
public interface ITCrmCarConfDao extends IBaseDao {

    public TCrmCarConf getCrmCarConfById(String id,String companyId) throws Exception;

    /**
     * 查询除VIN分配 方式之外的分配
     * @param companyId
     * @return
     * @throws Exception
     */
    public List<TCrmCarConf> getCrmCarConfByNotVin(String companyId) throws Exception;

    public TCrmCarConf getCrmCarConfByUid(String uid,String companyId)throws Exception;

    public List<TCrmCarConf> getCrmCarConfByRoleID(String roleId, String companyId)throws Exception;

}
